"""
Loader classes for importing CSV. 
See http://code.google.com/appengine/docs/python/tools/uploadingdata.html

@author: Tatiana Kichkaylo
"""

from google.appengine.ext import db
import datamodel

class AssetTypeLoader(Loader):
  """Loader for AssetType"""
  def __init__(self):
    Loader.__init__(self, 'AssetType',
                    [('name', str), ('parentType', str),
                    ('minCount', int), ('maxCount', int),
                    ('sortOrder', int)])


# There is no loader for AssetInstance for now, only the cleaner

class DocumentTypeLoader(Loader):
  """Loader for DocumentType"""
  def __init__(self):
    Loader.__init__(self, 'DocumentType', [('name', str)])
    
# There is no loader for DocumentPlace

